export const tableOption = {
    border: true,
    index: true,
    indexLabel: '序号',
    stripe: true,
    menuAlign: 'center',
    align: 'center',
    menu: true,
    editBtn: false,
    delBtn: false,
    addBtn: false,
    viewBtn: true,
    labelWidth:"35%",
    height: 500,
    column: [{
        type: "input",
        label: "唯一标识",
        prop: "id",
        hide: true,
        addDisplay: false,
        editDisplay: false,
        viewDisplay: false,
    }, {
        hide:true,
        type: "select",
        label: "线路",
        prop: "lineCode",
        search: false,
        // cascaderItem: ["stationCode"],
        props: {
            label: 'name',
            value: 'code'
        },
        dicUrl: "/support/swparamline/dict"
    }, {
        type: "select",
        label: "站点",
        prop: "stationCode",
        search: true,
        props: {
            label: 'name',
            value: 'code'
        },
        dicFlag: true,
        dicUrl: '/support/swparamstation/dict/9'
    }, {
        type: 'date',
        label: '统计日期',
         width: "120px",
        prop: 'statisticsDate',
        search: true,
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd'
    }, {
        type: "number",
        label: "钱箱票款",
        prop: "cashBox",
        precision: 2
    }, {
        type: "number",
        label: "补币金额",
        prop: "supplment",
        precision: 2
    }, {
        type: "number",
        label: "手工清出",
        prop: "hand",
        precision: 2
    }, {
        type: "number",
         width: "120px",
        label: "TVM收入小计",
        prop: "subTvmTotal",
        precision: 2
    }, {
        type: "number",
        label: "营销车票",
        prop: "marketTicket",
        precision: 2
    }, {
        type: "number",
         width: "120px",
        label: "预制单程票",
        prop: "yzdcp",
        precision: 2
    }, {
        type: "number",
        label: "应急纸票",
        prop: "yjzp",
        precision: 2
    }, {
        type: "number",
         width: "150px",
        label: "BOM实收总金额小计",
        prop: "subBomTotal",
        precision: 2
    }, {
        type: "number",
        label: "补售票员短款",
         width: "120px",
        prop: "conductorShort",
        precision: 2
    }, {
        type: "number",
        label: "交接长款",
         width: "120px",
        prop: "conductorLong",
        precision: 2
    }, {
        type: "number",
        label: "其它票款金额",
         width: "120px",
        prop: "other",
        precision: 2
    }, {
        type: "number",
        label: "营收总金额",
         width: "120px",
        prop: "total",
        precision: 2
    }, {
        type: "input",
        label: "录入人",
         width: "120px",
        prop: "passengerAttendName"
    }, {
        type: "input",
        label: "录入人员工号",
         width: "150px",
        prop: "passengerAttendJobNo"
    }, {
        type: "input",
        label: "复核人",
        prop: "attendName"
    }, {
        type: "input",
        label: "复核人员工号",
         width: "150px",
        prop: "attendJobNo"
    }, {
        type: "input",
        label: "备注",
        prop: "otherRemark"
     }]
};

export const refreshOption = {
    border: true,
    index: true,
    indexLabel: '序号',
    stripe: true,
    menuAlign: 'center',
    align: 'center',
    menu: true,
    editBtn: false,
    delBtn: false,
    addBtn: false,
    viewBtn: true,
    submitBtn: false,
    emptyBtn: false,
    column: [{
        type: 'date',
        label: '开始日期',
        prop: 'startDateStr',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        rules: [{
            required: true,
            message: "请选择开始日期"
        }]
    }, {
        type: 'date',
        label: '结束日期',
        prop: 'endDateStr',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        rules: [{
            required: true,
            message: "请选择结束日期"
        }]
    },
    //   {
    //     type: 'select',
    //     label: '线路',
    //     prop: 'lineCode',
    //     props: {
    //         label: 'name',
    //         value: 'code'
    //     },
    //     dicUrl: '/support/swparamline/dict',
    //     rules: [{
    //         required: true,
    //         message: "请选择线路"
    //     }]
    // }
    ]
};

